package com.dzx.design.behavioral.templatemethod;

/**
 * @author dzx
 * @ClassName:
 * @Description:
 * @date 2019年08月09日 11:40:55
 */
public class FECourse extends  ACourse{
    private boolean needWriteArticle = false;

    public FECourse(boolean needWriteArticle) {
        this.needWriteArticle = needWriteArticle;
    }

    public FECourse() {
    }

    @Override
    void packageCourse() {
        System.out.println("提供课程的前端代码");
        System.out.println("提供课程的图片等多媒体素材");
    }

    @Override
    protected boolean needWriteArticle() {
        return  this.needWriteArticle;
    }
}
